package ipebg.mzk.facade.entity;

import javax.persistence.*;

import java.io.Serializable;
import java.sql.Date;

/**
 * Created by LT on 2016/6/8.
 */
@Entity
@Table(name = "TB_AIPE_PRODUCED_DEPT", schema = "OMS_ELC", catalog = "")
public class AipeProducedDeptEntity implements Serializable{
    private String prodDeptId;
    private String prodDeptName;
    private String prodDeptCode;
    private String foxconIndDist;
    private String dept;
    private String contact;
    private String empNo;
    private String tel;
    private String addr;
    private String fax;
    private String postCode;
    private String creatUser;
    private Date creatDt;
    private String udpUser;
    private Date udpDt;

    @Id
    @Column(name = "PROD_DEPT_ID")
    public String getProdDeptId() {
        return prodDeptId;
    }

    public void setProdDeptId(String prodDeptId) {
        this.prodDeptId = prodDeptId;
    }

    @Basic
    @Column(name = "PROD_DEPT_NAME")
    public String getProdDeptName() {
        return prodDeptName;
    }

    public void setProdDeptName(String prodDeptName) {
        this.prodDeptName = prodDeptName;
    }

    @Basic
    @Column(name = "PROD_DEPT_CODE")
    public String getProdDeptCode() {
        return prodDeptCode;
    }

    public void setProdDeptCode(String prodDeptCode) {
        this.prodDeptCode = prodDeptCode;
    }

    @Basic
    @Column(name = "FOXCON_IND_DIST")
    public String getFoxconIndDist() {
        return foxconIndDist;
    }

    public void setFoxconIndDist(String foxconIndDist) {
        this.foxconIndDist = foxconIndDist;
    }

    @Basic
    @Column(name = "DEPT")
    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    @Basic
    @Column(name = "CONTACT")
    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    @Basic
    @Column(name = "EMP_NO")
    public String getEmpNo() {
        return empNo;
    }

    public void setEmpNo(String empNo) {
        this.empNo = empNo;
    }

    @Basic
    @Column(name = "TEL")
    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    @Basic
    @Column(name = "ADDR")
    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    @Basic
    @Column(name = "FAX")
    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    @Basic
    @Column(name = "POST_CODE")
    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    @Basic
    @Column(name = "CREAT_USER")
    public String getCreatUser() {
        return creatUser;
    }

    public void setCreatUser(String creatUser) {
        this.creatUser = creatUser;
    }

    @Basic
    @Column(name = "CREAT_DT")
    public Date getCreatDt() {
        return creatDt;
    }

    public void setCreatDt(Date creatDt) {
        this.creatDt = creatDt;
    }

    @Basic
    @Column(name = "UDP_USER")
    public String getUdpUser() {
        return udpUser;
    }

    public void setUdpUser(String udpUser) {
        this.udpUser = udpUser;
    }

    @Basic
    @Column(name = "UDP_DT")
    public Date getUdpDt() {
        return udpDt;
    }

    public void setUdpDt(Date udpDt) {
        this.udpDt = udpDt;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        AipeProducedDeptEntity that = (AipeProducedDeptEntity) o;

        if (prodDeptId != null ? !prodDeptId.equals(that.prodDeptId) : that.prodDeptId != null) return false;
        if (prodDeptName != null ? !prodDeptName.equals(that.prodDeptName) : that.prodDeptName != null) return false;
        if (prodDeptCode != null ? !prodDeptCode.equals(that.prodDeptCode) : that.prodDeptCode != null) return false;
        if (foxconIndDist != null ? !foxconIndDist.equals(that.foxconIndDist) : that.foxconIndDist != null)
            return false;
        if (dept != null ? !dept.equals(that.dept) : that.dept != null) return false;
        if (contact != null ? !contact.equals(that.contact) : that.contact != null) return false;
        if (empNo != null ? !empNo.equals(that.empNo) : that.empNo != null) return false;
        if (tel != null ? !tel.equals(that.tel) : that.tel != null) return false;
        if (addr != null ? !addr.equals(that.addr) : that.addr != null) return false;
        if (fax != null ? !fax.equals(that.fax) : that.fax != null) return false;
        if (postCode != null ? !postCode.equals(that.postCode) : that.postCode != null) return false;
        if (creatUser != null ? !creatUser.equals(that.creatUser) : that.creatUser != null) return false;
        if (creatDt != null ? !creatDt.equals(that.creatDt) : that.creatDt != null) return false;
        if (udpUser != null ? !udpUser.equals(that.udpUser) : that.udpUser != null) return false;
        if (udpDt != null ? !udpDt.equals(that.udpDt) : that.udpDt != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = prodDeptId != null ? prodDeptId.hashCode() : 0;
        result = 31 * result + (prodDeptName != null ? prodDeptName.hashCode() : 0);
        result = 31 * result + (prodDeptCode != null ? prodDeptCode.hashCode() : 0);
        result = 31 * result + (foxconIndDist != null ? foxconIndDist.hashCode() : 0);
        result = 31 * result + (dept != null ? dept.hashCode() : 0);
        result = 31 * result + (contact != null ? contact.hashCode() : 0);
        result = 31 * result + (empNo != null ? empNo.hashCode() : 0);
        result = 31 * result + (tel != null ? tel.hashCode() : 0);
        result = 31 * result + (addr != null ? addr.hashCode() : 0);
        result = 31 * result + (fax != null ? fax.hashCode() : 0);
        result = 31 * result + (postCode != null ? postCode.hashCode() : 0);
        result = 31 * result + (creatUser != null ? creatUser.hashCode() : 0);
        result = 31 * result + (creatDt != null ? creatDt.hashCode() : 0);
        result = 31 * result + (udpUser != null ? udpUser.hashCode() : 0);
        result = 31 * result + (udpDt != null ? udpDt.hashCode() : 0);
        return result;
    }

   
}
